        <!--sys-->
        <!--new weibo panel-->
        <div id="new-weibo" data-title="发分享"  data-footer="none" class="panel TS-post-panel">
            <header>
                <div id="header-buttons">
                    <div class="header-menu-link" id="hmp-cancel">
                        <a class="ts-listen" data-listen="weibo-goback-true">取消</a>
                    </div>
                    <div class="header-menu-link" id="hmp-send">
                        <a class="ts-listen sendBtn disable fc4" data-listen="weibo-dopost-true">发送</a>
                    </div>
                </div>
                <h1 style="text-align:center;padding-left:0;">
                    发分享
                </h1>
            </header>
            <iframe src="{:U('w3g/Index/ajax_iframe')}" id="ajax_iframe"></iframe>
            <div class="pure-form send_box">
                <textarea name="new-webo-content" id="new-weibo-textarea" oninput="TS.app.weibo.listen.checknums(true, this, '', true);" onpropertychange="TS.app.weibo.listen.checknums(true, this, '', true);" class="ts-textarea ts-listen" rows="4" placeholder="这一刻，我想说......" data-listen="weibo-checknums-true"><php>if($topics['topic_name']){echo '#'.$topics['topic_name'].'#';}</php></textarea>
                <div model-node="numsLeft" class="num">{$initNums}</div>
            </div>
            <div class="ts-footer">
                <!-- 图片 --><a class="icon imgbutton ts-listen" data-listen="weibo-upload-img" data-for="ts-upload-img-box" id="new-weibo-upload"><i class="fa-btn fa-btn-picture"></i></a>
                <!-- @ --><a class="icon atbutton ts-listen" data-listen="weibo-atwho-show" data-for="new-weibo-textarea"><i class="fa-btn fa-btn-at"></i></a>
                <!-- 话题 --><a class="icon topicbutton ts-listen" data-listen="weibo-topic-show" data-for="new-weibo-textarea"><i class="fa-btn fa-btn-topic"></i></a>
                <!-- 表情 --><a class="icon facelistbutton ts-listen" data-listen="weibo-facelist-show"><i class="fa-btn fa-btn-smile"></i></a>
                <!-- <a class="icon pure-button pure-button-primary ts-listen" data-listen="weibo-dopost-true">发送</a> -->
            </div>
            <div id="ts-upload-img-box"></div>
        </div>
        <!--频道分享-->
        <div id="new-channel-weibo" data-title="发分享"  data-footer="none" class="panel TS-post-panel">
            <header>
                <div id="header-buttons">
                    <div class="header-menu-link" id="hmp-cancel">
                        <a class="ts-listen" data-listen="weibo-goback-true">取消</a>
                    </div>
                    <div class="header-menu-link" id="hmp-send">
                        <a class="ts-listen sendBtn disable fc4" data-listen="weibo-feedpost-{$cid}">发送</a>
                    </div>
                </div>
                <h1 style="text-align:center;padding-left:0;">
                    发分享
                </h1>
            </header>
            <iframe src="{:U('w3g/Index/ajax_iframe_channel')}" id="ajax_iframe_channel"></iframe>
            <div class="pure-form send_box">
                <p class="channel_type">投稿到－{$cate.title}</p>
                <textarea name="new-webo-content" id="new-channel-textarea" class="ts-textarea ts-listen" rows="4" placeholder="这一刻，我想说......" data-listen="weibo-checknums-true"></textarea>
                <div model-node="numsLeft" class="num">{$initNums}</div>
            </div>
            <div class="ts-footer">
                <!-- 图片 --><a class="icon imgbutton ts-listen" data-listen="weibo-upload-img" data-for="ts-upload-img-box_channel" id="new-weibo-upload"><i class="fa-btn fa-btn-picture"></i></a>
                <!-- @ --><a class="icon atbutton ts-listen" data-listen="weibo-atwho-show" data-for="new-channel-textarea"><i class="fa-btn fa-btn-at"></i></a>
                <!-- 话题 --><a class="icon topicbutton ts-listen" data-listen="weibo-topic-show" data-for="new-channel-textarea"><i class="fa-btn fa-btn-topic"></i></a>
                <!-- 表情 --><a class="icon facelistbutton ts-listen" data-listen="weibo-facelist-show"><i class="fa-btn fa-btn-smile"></i></a>
                <!-- <a class="icon pure-button pure-button-primary ts-listen" data-listen="weibo-dopost-true">发送</a> -->
            </div>
            <div id="ts-upload-img-box_channel"></div>
        </div>
        <!--reply panel-->
        <div id="reply" data-title="发评论" data-footer="none" class="panel TS-post-panel" data-load="focus">
            <header>
                <div id="header-buttons">
                    <div class="header-menu-link" id="hmp-cancel">
                        <a class="ts-listen" data-listen="weibo-goback-true">取消</a>
                    </div>
                    <div class="header-menu-link" id="hmp-send">
                        <a id="ts-reply-submit" class="ts-listen sendBtn disable fc4" data-listen="weibo-doreply-list">发送</a>
                    </div>
                </div>
                <h1 style="text-align:center;padding-left:0;">
                    发评论
                </h1>
            </header>
            <div class="pure-form send_box">
                <textarea name="reply-content" id="reply-textarea" class="ts-textarea ts-listen" rows="4" placeholder="写评论......" data-listen="weibo-checknums-true"></textarea>
                <div model-node="numsLeft" class="num">{$initNums}</div>
                <div class="ckb">
                        
                    <label id="toShare"><input type="checkbox" class="checkbox" id="ifShareFeed_reply" name="ifShareFeed" value="1">{:L('PUBLIC_SHARETO_STREAM')}</label>
                    
                    
                    <label id="toOrigin" style="display: none;"><input type="checkbox" class="checkbox" id="comment_old_reply" name="comment_old" value="1" />同时评论给原文作者</label>
                    
                </div>
            </div>
            <div class="ts-footer">
                <a class="icon facelistbutton ts-listen" data-listen="weibo-facelist-show"><i class="fa-btn fa-btn-smile"></i></a>
                <!-- <a id="ts-reply-submit" class="icon pure-button pure-button-primary ts-listen" data-listen="weibo-doreply-list">发送</a> -->
            </div>
        </div>

        <!--reply panel-->
        <div id="replyD" data-title="发评论" data-footer="none" class="panel TS-post-panel" data-load="focus">
            <header>
                <div id="header-buttons">
                    <div class="header-menu-link" id="hmp-cancel">
                        <a class="ts-listen" data-listen="weibo-goback-true">取消</a>
                    </div>
                    <div class="header-menu-link" id="hmp-send">
                        <a id="ts-reply-submit" class="ts-listen sendBtn disable fc4" data-listen="weibo-doreply2reply-list">发送</a>
                    </div>
                </div>
                <h1 style="text-align:center;padding-left:0;">
                    发评论
                </h1>
            </header>
            <div class="pure-form send_box">
                <textarea name="reply-content" id="reply-textareaD" class="ts-textarea ts-listen" rows="4" placeholder="写评论......" data-listen="weibo-checknums-true"></textarea>
                <div model-node="numsLeft" class="num">{$initNums}</div>
                <div class="ckb">
                        
                    <label><input type="checkbox" class="checkbox" id="ifShareFeed_replyD" name="ifShareFeed" value="1">{:L('PUBLIC_SHARETO_STREAM')}</label>
                    
                    
                    <label><input type="checkbox" class="checkbox" id="comment_old_replyD" name="comment_old" value="1" />同时评论给原文作者</label>
                    
                </div>
            </div>
            <div class="ts-footer">
                <a class="icon facelistbutton ts-listen" data-listen="weibo-facelist-show"><i class="fa-btn fa-btn-smile"></i></a>
                <!-- <a id="ts-reply-submit" class="icon pure-button pure-button-primary ts-listen" data-listen="weibo-doreply-list">发送</a> -->
            </div>
        </div>
        
        <!--retweet panel-->
        <div id="retweet" data-title="转发分享" data-footer="none" class="panel TS-post-panel">
            <header>
                <div id="header-buttons">
                    <div class="header-menu-link" id="hmp-cancel">
                        <a class="ts-listen" data-listen="weibo-goback-true">取消</a>
                    </div>
                    <div class="header-menu-link" id="hmp-send">
                        <a class="ts-listen sendBtn disable fc4" data-listen="weibo-doretweet-list">发送</a>
                    </div>
                </div>
                <h1 style="text-align:center;padding-left:0;">
                    转发分享
                </h1>
            </header>
            <div class="pure-form send_box">
                <textarea name="retweet-content" id="retweet-textarea" class="ts-textarea ts-listen" rows="4" placeholder="你想说点什么......" data-listen="weibo-checknums-true"></textarea>
                <div model-node="numsLeft" class="num">{$initNums}</div>
                <div class="ckb">

                    <label><input type="checkbox" class="checkbox" id="comment_old_retweet" name="comment_old" value='1'>同时作为给<font id="towho">原作者</font>的评论发布</label>
                    
                </div>
            </div>
            <div class="ts-footer">
                <a class="icon facelistbutton ts-listen" data-listen="weibo-facelist-show"><i class="fa-btn fa-btn-smile"></i></a>
                <!-- <a class="icon pure-button pure-button-primary ts-listen" data-listen="weibo-doretweet-list">发送</a> -->
            </div>
        </div>

        <!--pic panel-->
        <div id="pic" data-title="图片预览" data-footer="none" class="panel TS-post-panel" data-footer="none" data-load="TS.app.weibo.func.picViewInit();">
            <div id="pic-view"></div>
            <div id="pic-footer">
                <div id="pic-footer-left" class="fa fa-angle-left ts-listen" data-listen="weibo-picview-prev"></div>
                <div id="pic-footer-center">
                    <span id="pic-footer-now">0</span>
                    /
                    <span id="pic-footer-all">0</span>
                </div>
                <div id="pic-footer-right" class="fa fa-angle-right ts-listen" data-listen="weibo-picview-next"></div>
            </div>
        </div>

        <!--video panel-->
        <div id="video" data-title="视频" data-footer="none" class="panel" data-footer="none" data-load="TS.app.weibo.func.videViewInit();" data-unload="$('#videoview').html('');">
            <div id="videoview"></div>
        </div>

        <!--message panel-->
        <div id="new-message" data-title="发私信" data-footer="none" class="panel" data-footer="none" data-load="TS.app.weibo.func.newMessage.bind();" data-unload="TS.app.weibo.func.newMessage.unbind();">
            <div class="pure-form pure-g">
                <div class="new-message-input">
                    <input class="pure-input-1" id="new-message-reciver" type="text" placeholder="收件人"></input>
                    <div id="msg-userlist">
                        <!-- <div class="msg-userlist-item">hello,world.</div> -->
                    </div>
                </div>
                <div class="new-message-input"><textarea class="pure-input-1" id="new-message-content" placeholder="私信内容..." name="content"></textarea></div>
                <div class="new-message-input"><button class="pure-button pure-button-primary pure-u-1" id="new-message-send" type="button">发送</button></div>
            </div>
        </div>

<!--pureUI panel-->

    </div><!--content-->
</div><!--main-->
        <script>
            (function(){
                TS.cache.profile = {
                    uid:'{$profile["uid"]}',
                    uname:'{$profile["uname"]}',
                    email:'{$profile["email"]}',
                    avatar_original:'{$profile["avatar_original"]}',
                    avatar_small:'{$profile["avatar_small"]}'
                };
//                $(document).on("touchmove",".pic-view-img",function(e){
//                        console.log(e);
//                });
            })();

        </script>

</div>
    <div class="postentry">
        <php>if(MODULE_NAME == 'Index' && in_array(ACTION_NAME,array('index','rec','fri_weibo','doSearch'))){</php>
            <a href="#new-weibo" id="postentry">&nbsp;</a>
        <php>}elseif(MODULE_NAME == 'Channel'){</php>
            <a href="#new-channel-weibo" id="postentry">&nbsp;</a>
        <php>}elseif(MODULE_NAME == 'Weiba'){</php>
            <php>if(ACTION_NAME == 'postDetail'){</php>
            <a href="{:U('w3g/Weiba/reply', array('post_id'=>intval($_GET['post_id'])))}" id="postentry">&nbsp;</a>
            <php>}elseif(!in_array(ACTION_NAME, array('reply', 'post'))){</php>
            <a href="{:U('w3g/Weiba/post', array('weiba_id'=>intval($_GET['weiba_id'])))}" id="postentry">&nbsp;</a>
            <php>}</php>
        <php>}</php>
    </div>
    <div id="pure-shadow"></div>
    <div id="footer"></div>
    <div id="custom"></div>
</body>
</html>